<b>Chat room: "{$room_name}"</b><br />
{if $block}<div>You are blocked</div>{/if}
{foreach from=$messages item=item}
        [{$item.created|date_format:"%H:%M:%S"}]
        {if $item.user_password}<a href="/another/profile/{$item.user_id}/">{/if}
            <b>{$item.user_login}</b>
        {if $item.user_password}</a>{/if}
        : {$item.chat_message}<br />
{/foreach}<br />
<!-- Paging -->
{foreach from=$paging item=item key=key}
    {if $page == $key}{$item}{else}<a href="{$sys_action_path}/{$room_id}/{if $key != 0}{$key}/{/if}">{$item}</a>{/if} 
{/foreach}
<!--// Paging -->